package com.miao.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //生成有参构造
@NoArgsConstructor //生成无参构造
public class EduException extends RuntimeException {

    private Integer code; //状态码

    private String msg; //返回信息


    // @Override
    public String toString() {
        return "EduException{" +
                "message=" + this.getMessage() +
                ", code=" + code +
                '}';
    }
}
